package com.example.Dao;

import com.example.pojo.Department;
import com.example.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface EmployeeMapper {
    //查询全部员工
    List<Employee> selectAll();
    //根据id查询单条员工记录
    Employee selectById(Integer id);
    //插入一条员工数据
    void save(Employee employee);
    //更新员工
    void update(Employee employee);
    //删除员工
    void delete(Integer id);
    //查询全部部门
    List<Department> selectDepart();

}
